Skip to content

Conversation

@techSolstice
Copy link

Q A
Bug fix? no
New feature? no
Issues Fix #480
License MIT

docs: Add documentation for a quick way to get the component boilerplate in.

docs: Document a quick way to get the component boilerplate in.
# Namespace & directory for components
App\Twig\Components\: 'components/'
That's it! We're ready to go!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the way it was before. For most of new users, composer require will be enough.

Success!
This will also setup the config.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean here ? How does the maker bundle set the local config ?

Comment on lines +80 to +81
Similarly, to make a `live component`_, enter ``yes`` when prompted whether
to make this a live component.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should talk about LiveComponent that early in the page.

@smnandre
Copy link
Member

Thank you for the suggestion, @techSolstice.

My primary concern with the current implementation is that using the maker is not strictly related to “installation.”

If we want to document it, I suggest we create a dedicated section, similar to how it’s done for controllers: Symfony Documentation - Generating Controllers.

Would you be able to adapt this PR in that direction?

@smnandre smnandre added Documentation Improvements or additions to documentation Status: Needs Work Additional work is needed labels Jun 19, 2024
@smnandre
Copy link
Member

Added in #2384

@smnandre smnandre closed this Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation Status: Needs Review Needs to be reviewed Status: Needs Work Additional work is needed TwigComponent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Live][Twig] document make:twig-component

3 participants